export const routes = [
  {
    path: '/',
    name: 'Index',
    component: () => import('../views/Index.vue'),

    children: [
      {
        path: 'home',
        alias: '',
        name: 'Home',
        component: () => import('../views/Home.vue'),
      },
      {
        path: 'menu',
        name: 'Menu',
        component: () => import('../views/Menu.vue'),
      },
      {
        path: 'shopbag',
        name: 'Shopbag',
        component: () => import('../views/Shopbag.vue'),
      },
      {
        path: 'my',
        name: 'My',
        component: () => import('../views/My.vue'), 
      },
     
    ]
  },

  {
    path: '/detail/:pid',
    name: 'Detail',
    component: () => import('../views/Detail.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/myData',
    name: 'Mydata',
    component: () => import('../views/Mydata.vue'),
  },
  {
    path: '/myCollect',
    name: 'Mycollect',
    component: () => import('../views/Mycollect.vue'),
  },
  {
    path: '/order',
    name: 'Order',
    component: () => import('../views/Order.vue'),
  },
  {
    path: '/orderBuy',
    name: 'OrderBuy',
    component: () => import('../views/OrderBuy.vue'),
  },
  {
    path: '/address/:aid?',

    name: 'Address',
    component: () => import('../views/Address.vue'),
  },
  {
    path: '/addresslist',
    name: 'Addresslist',
    component: () => import('../views/Addresslist.vue'),
  },
  {
    path: '/Safe',
    name: 'Safe',
    component: () => import('../views/Safe.vue'),
  },
  {
    path: '/Search',
    name: 'Search',
    component: () => import('../views/Search.vue'),
  },
  {
    path: '/RetrievePassword',
    name: 'RetrievePassword',
    component: () => import('../views/RetrievePassword.vue'),
  },


]